/*
 * 1、Object.keys
 * 2、Object.values
 * 3、Object.entries
 * 4、从原型上继承的属性是否被包含在以上函数的返回结果中？
 */

let x = Object.create( null );

x.id = 4004 ;
Object.defineProperty( x , 'name' , { value: '王盼盼' , enumerable: true } );
Object.defineProperty( x , 'age' , { value: 15 , enumerable: false } );

console.log( x );

let names = Object.keys( x );
console.log( names );

names = Object.getOwnPropertyNames( x );
console.log( names );

let values = Object.values( x );
console.log( values );

let entries = Object.entries( x );
console.log( entries );